package com.lizhaoshan.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lizhaoshan.dto.EmployeeDto;
import com.lizhaoshan.pojo.Employee;
import com.lizhaoshan.vo.EmployeeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: reggie
 * @description: 员工数据库接口
 * @author: lamour
 * @create: 2022-05-13 20:43
 **/

@Mapper
public interface EmployeeDao extends BaseMapper<Employee> {
    Employee selectByCondition(Employee employee);

    int insertEmployee(Employee employee);

    int updateEmployee(Employee employee);

    List<EmployeeVo> selectPage(@Param("begin") Integer begin, @Param("size")Integer size, @Param("name") String name);

    int countTotal();
}
